import request from '@/utils/request'





//注册账号申请管理
export function accountManagement(data) {
  return request({
    url: '/admin/accountManagement',
    method: 'PUT',
    data

  })
}

//  学院下拉框
export function findAll() {
  return request({
    url: '/admin/findAll',
    method: 'GET',

  })
}
//  专业下拉框
export function findAoo() {
  return request({
    url: '/admin/findAoo',
    method: 'GET',

  })
}

//类别分页查询
export function findTypeAll(query) {
  return request({
    url: '/admin/typeAll',
    method: 'GET',
    params: query
  })
}
//类别添加
export function findTypeAdd(data) {
  return request({
    url: '/admin/typeAdd',
    method: 'POST',
    data
  })
}
//类别删除
export function deleteById(id) {
  return request({
    url: `/admin/${id}`,
    method: 'DELETE',

  })
}
//类别修改
export function updateById(data) {
  return request({
    url: '/admin/updateById',
    method: 'PUT',
    data
  })
}
//学生管理分页查询
export function pagingStudent(query) {
  return request({
    url: '/admin/searchStudent',
    method: 'GET',
    params: query
  })
}
//学生管理分页查询
export function pagingTeacher(query) {
  return request({
    url: '/admin/searchTeacher',
    method: 'GET',
    params: query
  })
}
// 学习成果认定分页查询
export function pagingAffirm(query) {
  return request({
    url: '/admin/searchAffirm',
    method: 'GET',
    params: query
  })
}
// 学习成果转换分页查询
export function pagingTransitio(query) {
  return request({
    url: '/admin/searchTransitio',
    method: 'GET',
    params: query
  })
}
// 认定审核通过
export function affirmAchievementPass(data) {
  return request({
    url: '/admin/affirmAchievementPass',
    method: 'PUT',
    data
  })
}


// 认定审核不通过
export function affirmAchievementFail(data) {
  return request({
    url: '/admin/affirmAchievementFail',
    method: 'PUT',
    data
  })
}
// 转换审核通过
export function PassTransformationOfLearningOutcomes(data) {
  return request({
    url: '/admin/PassTransformationOfLearningOutcomes',
    method: 'PUT',
    data
  })
}
// 转换审核不通过
export function FailTransformationOfLearningOutcomes(data) {
  return request({
    url: '/admin/FailTransformationOfLearningOutcomes',
    method: 'PUT',
    data
  })
}
//批量删除
export function deleteByIds(data) {
  return request({
    url: '/admin/delBarch',
    method: 'POST',
    data
  })
}
//删除学生账号信息
export function deletePersonnel(id) {
  return request({
    url: `/admin/delete/${id}`,
    method: 'DELETE',
  })
}

